package com.example.test_mybatis.mapper;

import com.example.test_mybatis.entity.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import sun.rmi.log.LogOutputStream;

import java.util.List;

@Mapper
public interface UserMapper{


    /**
     * @Param 注解自定义参数的key,如果不使用注解则默认为param+或者为参数名称都可以正常取值
     * @param name
     * @param age
     * @return
     */
    public Users getUser(@Param("param") String name, Integer age);


    public List<Users> getUsers(String[] idList);


}
